/*
 * @文档描述:
 * @author: 宣灵杰
 * @Date: 2020-12-21 16:25:41
 * @LastEditTime: 2020-12-21 17:12:24
 * @LastEditors: 宣灵杰
 */
export default [
  {
    path: '/',
    component: '../layouts/BlankLayout',
    routes: [
      {
        path: '/user/login',
        component: './user/Login',
      },
      {
        path: '/',
        component: '../layouts/SecurityLayout',
        routes: [
          {
            path: '/',
            component: '../layouts/BasicLayout',
            routes: [
              {
                path: '/',
                // redirect: '/lotteryWhiteList',
                redirect: '/createActivity',
              },
              {
                path: '/welcome',
                name: 'welcome',
                icon: 'smile',
                component: './Welcome',
              },
              {
                name: 'list.table-list',
                icon: 'table',
                path: '/list',
                component: './ListTableList',
              },
              {
                name: 'lotteryWhiteList',
                path: '/lotteryWhiteList',
                component: './lotteryWhiteList',
              },
              {
                name: 'createActivity',
                path: '/createActivity',
                component: './createActivity',
                // routes: [
                //   {
                //     name: 'createNewEvent',
                //     path: '/createNewEvent',
                //     component: './createNewEvent',
                //   },
                // ],
              },
              {
                name: 'activityComment',
                path: '/activityComment',
                component: './activityComment',
              },
              {
                name: 'createNewEvent',
                path: '/createNewEvent',
                component: './createNewEvent',
              },
              {
                name: 'activityDetails',
                path: '/activityDetails',
                component: './activityDetails',
              },
              {
                component: './404',
              },
            ],
          },
          {
            component: './404',
          },
        ],
      },
    ],
  },
  {
    component: './404',
  },
];
